#include "../../../common/dms.hpp"
#include <gflags/gflags.h>


DEFINE_string(key_id,"LTAI5t8osCGkFQALivzNnsG9","短信keyID");
DEFINE_string(key_secret,"QgL7YKkuhGOhNISPTL1EE7QvK8Cfrw","短信key_secret");


DEFINE_bool(run_mode,false,"程序的运行模式，false： 调试 true： 发布");
DEFINE_string(log_file,"","发布模式下，向文件中输出，如果是调试模式下，模式是stdout");
DEFINE_int32(log_level,0,"发布模式下，用于指定的日志输出等级");

int main(int argc,char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);
    init_logger(FLAGS_run_mode,FLAGS_log_file,FLAGS_log_level);

    DMSClient client(FLAGS_key_id,FLAGS_key_secret);
    client.send("15310432984","5678"); 

    return 0;
}